package lc.com.pcsc;

/**
 * Created by Japhy on 2017-8-29.
 */

public class Pcsc {
    static {
//        System.loadLibrary("pcsc");
    }

    public static int init(){
        return native_init();
    }
    public static String getDevices(){
        return native_get_device();
    }
    public static int connect(byte[] atr){
        return native_connect(atr);
    }
    public static int exchange(byte[] capdu, byte[] rapdu){
        return native_exchange(capdu, rapdu);
    }
    public static int disconnect(){
        return native_disconnect();
    }
    public static int slot_status(){
        return native_slot_status();
    }

    private static native int native_init();
    private static native String native_get_device();
    private static native int native_connect(byte[] atr);
    private static native int native_exchange(byte[] capdu, byte[] rapdu);
    private static native int native_disconnect();
    private static native int native_slot_status();
}
